<template>
  <div id="app">
    <div class="view-body">
      <!-- <transition name="fade"> -->
      <router-view></router-view>
      <!-- </transition> -->
    </div>
    <v-tabbar v-if="hasTabbar"></v-tabbar>
  </div>
</template>

<script>
import vTabbar from '@/components/tabbar'
export default {
  // name: 'app',
  data() {
    return {
      pageHeight: "",
    }
  },
  components: {
    vTabbar
  },
  mounted() {
    this.pageHeight = document.documentElement.clientHeight + 'px';
  },
  computed: {
    hasTabbar() {
      if (this.$route.meta.hasTabbar) {
        return true
      }
      return false
    }
  }
}
</script>

<style lang="scss">
@import "@/assets/css/index.scss";
#app {
  height: 100%;
}
input {
  line-height: normal !important;
}

#app {
  // height: 100%;
  // display: flex;
  // flex-direction: column;
  // overflow: auto;
}

.view-body {
  // box-sizing: border-box;
  // flex: 1;
  // height: 100%;
  // overflow: auto;
}

// .footer {
//   height: 54px;
//   position: relative;
// }
</style>
